package com.zhousc.springcloud;

import com.zhousc.springcloud.rules.MyRule;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.context.annotation.Configuration;

@Configuration
@RibbonClient(name = "eureka-client",configuration = MyRule.class)
public class RibbonConfiguration {

    /**
     * 配置默认全局负载均衡策略
     */
//    @Bean
//    public IRule defaultLbsRule(){
//        return new RandomRule();
//    }
}
